Integrand size = 26, antiderivative size = 73 \[ \int \sec ^3(c+d x) \sqrt {a+i a \tan (c+d x)} \, dx=\frac {8 i a^2 \sec ^3(c+d x)}{15 d (a+i a \tan (c+d x))^{3/2}}+\frac {2 i a \sec ^3(c+d x)}{5 d \sqrt {a+i a \tan (c+d x)}} \]
[Out]
Time = 0.15 (sec) , antiderivative size = 73, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {3575, 3574} \[ \int \sec ^3(c+d x) \sqrt {a+i a \tan (c+d x)} \, dx=\frac {8 i a^2 \sec ^3(c+d x)}{15 d (a+i a \tan (c+d x))^{3/2}}+\frac {2 i a \sec ^3(c+d x)}{5 d \sqrt {a+i a \tan (c+d x)}} \]
[In]
[Out]
Rule 3574
Rule 3575
Rubi steps \begin{align*} \text {integral}& = \frac {2 i a \sec ^3(c+d x)}{5 d \sqrt {a+i a \tan (c+d x)}}+\frac {1}{5} (4 a) \int \frac {\sec ^3(c+d x)}{\sqrt {a+i a \tan (c+d x)}} \, dx \\ & = \frac {8 i a^2 \sec ^3(c+d x)}{15 d (a+i a \tan (c+d x))^{3/2}}+\frac {2 i a \sec ^3(c+d x)}{5 d \sqrt {a+i a \tan (c+d x)}} \\ \end{align*}
Time = 0.53 (sec) , antiderivative size = 63, normalized size of antiderivative = 0.86 \[ \int \sec ^3(c+d x) \sqrt {a+i a \tan (c+d x)} \, dx=-\frac {2 \sec (c+d x) (\cos (2 (c+d x))-i \sin (2 (c+d x))) (-7 i+3 \tan (c+d x)) \sqrt {a+i a \tan (c+d x)}}{15 d} \]
[In]
[Out]
Time = 7.95 (sec) , antiderivative size = 62, normalized size of antiderivative = 0.85
method | result | size |
default | \(\frac {2 \sqrt {a \left (1+i \tan \left (d x +c \right )\right )}\, \left (8 i \cos \left (d x +c \right )+8 \sin \left (d x +c \right )-i \sec \left (d x +c \right )+3 \sec \left (d x +c \right ) \tan \left (d x +c \right )\right )}{15 d}\) | \(62\) |
[In]
[Out]
none
Time = 0.24 (sec) , antiderivative size = 62, normalized size of antiderivative = 0.85 \[ \int \sec ^3(c+d x) \sqrt {a+i a \tan (c+d x)} \, dx=-\frac {8 \, \sqrt {2} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} {\left (-5 i \, e^{\left (2 i \, d x + 2 i \, c\right )} - 2 i\right )}}{15 \, {\left (d e^{\left (4 i \, d x + 4 i \, c\right )} + 2 \, d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )}} \]
[In]
[Out]
\[ \int \sec ^3(c+d x) \sqrt {a+i a \tan (c+d x)} \, dx=\int \sqrt {i a \left (\tan {\left (c + d x \right )} - i\right )} \sec ^{3}{\left (c + d x \right )}\, dx \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 222 vs. \(2 (57) = 114\).
Time = 21.46 (sec) , antiderivative size = 222, normalized size of antiderivative = 3.04 \[ \int \sec ^3(c+d x) \sqrt {a+i a \tan (c+d x)} \, dx=\frac {8 \, {\left (5 i \, \sqrt {2} \cos \left (2 \, d x + 2 \, c\right ) - 5 \, \sqrt {2} \sin \left (2 \, d x + 2 \, c\right ) + 2 i \, \sqrt {2}\right )} \sqrt {a}}{15 \, {\left (\cos \left (2 \, d x + 2 \, c\right )^{2} + \sin \left (2 \, d x + 2 \, c\right )^{2} + 2 \, \cos \left (2 \, d x + 2 \, c\right ) + 1\right )}^{\frac {1}{4}} {\left ({\left (\cos \left (4 \, d x + 4 \, c\right ) + 2 \, \cos \left (2 \, d x + 2 \, c\right ) + i \, \sin \left (4 \, d x + 4 \, c\right ) + 2 i \, \sin \left (2 \, d x + 2 \, c\right ) + 1\right )} \cos \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, d x + 2 \, c\right ), \cos \left (2 \, d x + 2 \, c\right ) + 1\right )\right ) + {\left (i \, \cos \left (4 \, d x + 4 \, c\right ) + 2 i \, \cos \left (2 \, d x + 2 \, c\right ) - \sin \left (4 \, d x + 4 \, c\right ) - 2 \, \sin \left (2 \, d x + 2 \, c\right ) + i\right )} \sin \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, d x + 2 \, c\right ), \cos \left (2 \, d x + 2 \, c\right ) + 1\right )\right )\right )} d} \]
[In]
[Out]
\[ \int \sec ^3(c+d x) \sqrt {a+i a \tan (c+d x)} \, dx=\int { \sqrt {i \, a \tan \left (d x + c\right ) + a} \sec \left (d x + c\right )^{3} \,d x } \]
[In]
[Out]
Time = 6.65 (sec) , antiderivative size = 88, normalized size of antiderivative = 1.21 \[ \int \sec ^3(c+d x) \sqrt {a+i a \tan (c+d x)} \, dx=\frac {8\,{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}\,\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}\,5{}\mathrm {i}+2{}\mathrm {i}\right )\,\sqrt {a-\frac {a\,\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}\,1{}\mathrm {i}-\mathrm {i}\right )\,1{}\mathrm {i}}{{\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1}}}{15\,d\,{\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1\right )}^2} \]
[In]
[Out]